#include "employee.h"
#include "manager.h"
#include <vector>
#include <string>
using namespace std;

enum attribute{FIRSTNAME, LASTNAME, POSITION, BOSS};

employee::employee(string first, string last, string position, string boss)
    :firstName(first),
     lastName(last),
     position(position),
     boss(boss){

}


manager:: manager(string first, string last, string position, string boss)
    :firstName(first),
     lastName(last),
     position(position),
     boss(boss){
    
}

void manager::assignTask(employee &a, int number){
    a.task.push_back(number);
    
    
};

int employee::viewTask(int index){
    return task[index];
}

void manager::removeTask(employee& a, int number){
    a.task.erase(a.task.begin()+number);
}

string employee::getAttribute(int attribute ){
    switch (attribute){
        
        case (FIRSTNAME):
            return this->firstName;
            break;
            
        case(LASTNAME):
            return this->lastName;
            break;
            
        case(POSITION):
            return this->position;
            break;
            
        case(BOSS):
            return this->boss;
            break;
    }
    
}


